package org.youyun56.gpsserver.command;

import org.youyun56.gpsserver.Task;
import org.youyun56.gpsserver.common.SessionKey;
import org.youyun56.gpsserver.db.DBHeper;
import org.youyun56.gpsserver.entity.Car;

public class UpdateCarStatus extends Task {

    @Override
    public Object execute() throws Exception {
        Car car = (Car) command.getSession().getAttribute(SessionKey.CAR);
        DBHeper.carDao.updateCar(car);
        return car;
    }

}
